package com.zhangh.summer.admin.biz.user;

import com.zhangh.summer.admin.model.bo.NoValidatorBO;
import com.zhangh.summer.admin.model.bo.UserBO;
import com.zhangh.summer.admin.model.bo.UserQuery;
import com.zhangh.summer.admin.model.po.AdUserPO;
import com.zhangh.summer.admin.support.ds.common.pager.DataPager;
import com.zhangh.summer.admin.support.ds.common.pager.Pager;

/**
 * @description: TODO
 * @author: zhanghui  zhanghlucky@163.com
 * @create: 2021-09-28 21:34
 **/
public interface UserBiz {

    public DataPager<UserBO> getUserDataPager(UserQuery query, Pager pager);

    public UserBO getUserBO(Long id);

    public long saveUser(UserBO userBO);

    public int updateUser(UserBO userBO);

    public int deleteUser(Long id);

    public int updatePwd(UserBO userBO);

    public boolean validateLoginName(NoValidatorBO noValidatorBO);

    public AdUserPO getCurrentUser();

    public AdUserPO getUserByLoginName(String loginName);

    public String genPwd(String loginPwd,String salt);


}
